<%@page import="javax.jws.WebParam.Mode"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html style="background:lightblue">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<style>
td.invalid-value {
	border-color: red;
}



#header {
	width: 300px;
	border: 1px solid black;
	margin: auto;
	color: #DDDDDD;
	border-radius:4px;
	margin-top:250px;
	padding-left:65px;
	background:repeat-x scroll 0 0
		#263849;
	padding-bottom: 20px;
}
.errorblock {
	color: #ff0000;
	background-color: #ffEEEE;
	border: 3px solid #ff0000;
	padding: 8px;
	margin: 16px;
}
</style>
<title>Insert title here</title>
</head>
<body>
<!--%
String status = (String) session.getAttribute("Benii");
if (status!=null&&status.equals("gagal")){     
out.print("<script>alert('Password dan Username Salah......');</script>");
}      
%-->
<c:if test="${not empty error}">
		<div class="errorblock">
			Your login attempt was not successful, try again.<br /> Caused :
			${sessionScope["SPRING_SECURITY_LAST_EXCEPTION"].message}
		</div>
	</c:if>
	<div id="header">
	<form action="<c:url value='j_spring_security_check' />" method="post">
	
		<table>
			<tr>
				<td></td>
				<td><h1>Login</h1></td>
			</tr>
			<tr>
				<td>Email</td>
				<td><input type="text" name="j_username" placeholder="Email" required></td>
			</tr>
			<tr>
				<td>Password</td>
				<td><input type="password" name="j_password" placeholder="Password"required></td>
			</tr>
			<tr>
				<td></td>
				<td><input type="submit" value="Login"></td>
			</tr>
		</table>
	</form>
	</div>
</body>
</html>